<?php
 
// require __DIR__.'/../bootstrap/autoload.php';
namespace App\Http\Controllers;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Contracts\Container\Container;
use Closure;

class BindController extends BaseController
{
    public $name;

    public function index(Container $container)
    {
        echo 999;die;
        $container->bind('tanteng');
         
        $instance = $container->make('tanteng');
        $instance->name = 'tanteng';
         
        $instance2 = $container->make('tanteng');
        $instance2->name = 'tuntun';
         
        echo $instance->name.' '.$instance2->name;
    }


}
 

